.update-photo {
    border: 1px solid #880000;
    float: left;
    width: 118px;
    height: 118px;
    margin-left: 20px;
    cursor: pointer;
    position: relative;
}

body {
    background-image: url(../images/indexbg.png);
    background-color: #ecdfad;
}

.update-data {
    float: left;
    width: 400px;
    height: 400px;
    border: 1px solid #880000;
    margin-left: 40px;
    padding-top: 15px;

}

.update-data span {
    display: inline-block;
    margin-left: 20px;
    line-height: 40px;
    width: 70px;
    height: 40px;
}
.update-photo:hover::after {
    display: block;
}

.update-photo::after {
    content: '编辑头像';
    display: none;
    width: 74px;
    height: 20px;
    background-color: #888;
    position: absolute;
    left: 20px;
    bottom:0px;
    text-align: center;
    color: #fff;
}